package com.hurl.library.spider;

import org.testng.annotations.Test;

public class Spider_TestCase {
//	@Test
	public void test_TemplateUrl()throws SpiderException{
		TemplateUrlPattern turl = new TemplateUrlPattern("http://www.suxuewang.com/word_initial-{0}.html");
		turl.addRule(0, new NumberRule(1,20));
		String url = null;
		while((url=turl.nextUrl())!=null){
			System.out.println(url);
		}
	}
	@Test
	public void test_WebSpider() throws SpiderException{}
}
